package com.bjsxt.homework2;

public class Test {

    public static void main(String[] args) {

        final Printer printer = new Printer();

        for (int i = 0; i < 3; i++) {
            new Thread(new Runnable() {
                @Override
                public void run() {
                    for (int j = 0; j < 4; j++) {
                        printer.print();
                    }
                }
            }, "" + i).start();
        }

    }
}
